package com.csdn.leon.model;

import org.codehaus.jackson.annotate.JsonProperty;

public class BlogModel extends Entity{
	@JsonProperty("title")
	private String title; // 标题
	@JsonProperty("link")
	private String link; // 文章链接
	@JsonProperty("date")
	private String date; // 博客发布时间
	@JsonProperty("imageLink")
	private String imgLink; // 图片链接
	@JsonProperty("content")
	private String content; // 文章内容
	@JsonProperty("msg")
	private String msg; // 消息
	@JsonProperty("type")
	private int type; // 博客分类
	@JsonProperty("username")
    private String username;
	@JsonProperty("totalread")
    private String totalread;
	@JsonProperty("totalcomment")
    private String totalcomment;
	@JsonProperty("viewTime")
	private String viewTime;
	@JsonProperty("state")
	private int state;
	@JsonProperty("summary")
	private String summary;
    
	
	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getImgLink() {
		return imgLink;
	}

	public void setImgLink(String imgLink) {
		this.imgLink = imgLink;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getViewTime() {
		return viewTime;
	}

	public void setViewTime(String viewTime) {
		this.viewTime = viewTime;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTotalread() {
		return totalread;
	}

	public void setTotalread(String totalread) {
		this.totalread = totalread;
	}

	public String getTotalcomment() {
		return totalcomment;
	}

	public void setTotalcomment(String totalcomment) {
		this.totalcomment = totalcomment;
	}

	@Override
	public String toString() {
		return "BlogModel [title=" + title + ", link=" + link + ", date="
				+ date + ", imgLink=" + imgLink + ", content=" + content
				+ ", msg=" + msg + ", type=" + type + ", username=" + username
				+ ", totalread=" + totalread + ", totalcomment=" + totalcomment
				+ ", viewTime=" + viewTime + ", state=" + state + ", summary="
				+ summary + "]";
	}
	
}
